import httpClient from '@/api/axiosInstance'

import {
  AdminInfoModel,
  ProjectExperienceModel,
  WebsiteInfoModel,
  GameVideoModel,
  TgaGameModel,
  ShowModel,
  BookModel,
  HotMovieModel,
  AbilityModel,
  CategoryProjectModel,
} from './response'

export const getAdminInfoApi = () => httpClient.get<null, AdminInfoModel>('/api/Website/info')

export const getProjectExperiencesApi = () =>
  httpClient.get<null, ProjectExperienceModel>('/api/Website/pro-experiences')

export const getWebInfoApi = () => httpClient.get<null, WebsiteInfoModel>('/api/Website/web-info')

export const getGameVideosApi = () =>
  httpClient.get<null, Array<GameVideoModel>>('/api/Website/game-videos')

export const getTgaGamesApi = () =>
  httpClient.get<null, Array<TgaGameModel>>('/api/Website/tga-games')

export const getShowsApi = () => httpClient.get<null, Array<ShowModel>>('/api/Website/shows')

export const getBooksApi = () => httpClient.get<null, Array<BookModel>>('/api/Website/books')

export const getHotMoviesApi = () =>
  httpClient.get<null, Array<HotMovieModel>>('/api/Website/hot-movies')

export const getAbilitiesApi = () =>
  httpClient.get<null, Array<AbilityModel>>('/api/Website/abilities')

export const getCategoryProjectApi = () =>
  httpClient.get<null, Array<CategoryProjectModel>>('/api/Website/category-projects')
